<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="History.aspx.cs" Inherits="History" Title="Untitled Page" Culture="auto"
    meta:resourcekey="PageResource1" UICulture="auto" %>
<%@ MasterType VirtualPath="~/MasterPage.master" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:HiddenField ID="fieldUserID" runat="server" />
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetMessageHistory"
        TypeName="AjaxNinja.Data.SQLDb">
        <SelectParameters>
            <asp:ControlParameter ControlID="fieldUserID" Name="UserID" PropertyName="Value"
                Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>
    <asp:PlaceHolder ID="profilePlaceHolder" runat="server"></asp:PlaceHolder>
    <fb:userCard runat="server" ID="userCard1" meta:resourcekey="userCard1" />
    <div class="madContainer">
        <div class="header">
            <h2>
                <asp:Literal ID="textAppTitle" runat="server" meta:resourcekey="textAppTitleResource1"></asp:Literal></h2>
            <div class="subheader">
                <h3>
                    <asp:Literal ID="historyName" runat="server" Text="Recent History" meta:resourcekey="historyNameResource1"></asp:Literal>
                </h3>
            </div>
        </div>
        <asp:Repeater ID="Repeater1" runat="server" DataSourceID="ObjectDataSource1">
            <HeaderTemplate>
                <ul class="history">
            </HeaderTemplate>
            <ItemTemplate>
                <li class="normal">
                    <fb:relativeTimeDifference ID="timeDiff" runat="server" CssClass="timeDiff" StartTime='<%# DataBinder.Eval(Container.DataItem, "timeStamp") %>' />
                    <asp:Label ID="msgContent" runat="server" CssClass="message" Text='<%# DataBinder.Eval(Container.DataItem, "msg") %>' />
                </li>
            </ItemTemplate>
            <AlternatingItemTemplate>
                <li class="alt">
                    <fb:relativeTimeDifference ID="timeDiff" runat="server" CssClass="timeDiff" StartTime='<%# DataBinder.Eval(Container.DataItem, "timeStamp") %>' />
                    <asp:Label ID="msgContent" runat="server" CssClass="message" Text='<%# DataBinder.Eval(Container.DataItem, "msg") %>' />
                </li>
            </AlternatingItemTemplate>
            <FooterTemplate>
                </ul>
            </FooterTemplate>
        </asp:Repeater>
    </div>
</asp:Content>
